import { Request, Response } from 'express';

export default {
    'GET  /api/order/list': (req: Request, res: Response) => {
        res.json({
            data: [
                {
                    'orderNo': 'J1231231231231',
                    'createTime': '2020-09-11 11:12:43',
                    'productName': '商品名称1',
                    'number': 2,
                    'pirce': 123,
                    'totalPrice': 246,
                    'state': 'success',
                    'desc': '返回结果结构为返回结果结构为',
                    'id': '1',
                    'orderUrl':'http://localhost:8000/orderPage'
                },
                {
                    'orderNo': 'J1231231231231',
                    'createTime': '2020-09-11 11:12:43',
                    'productName': '商品名称2',
                    'number': 2,
                    'pirce': 123,
                    'totalPrice': 246,
                    'state': 'processing',
                    'desc': '返回结果结构为返回结果结构为',
                    'id': '2',
                    'orderUrl':'http://localhost:8000/orderPage'
                },
                {
                    'orderNo': 'J1231231231231',
                    'createTime': '2020-09-11 11:12:43',
                    'productName': '商品名称3',
                    'number': 2,
                    'pirce': 123,
                    'totalPrice': 246,
                    'state': 'success',
                    'desc': '返回结果结构为返回结果结构为',
                    'id': '3',
                    'orderUrl':'http://localhost:8000/orderPage'
                },
            ],
            success: true
        });
    },
    'GET  /api/order/urging': (req: Request, res: Response) => {
        res.send({
            code: 200
        });
    },
}